CGI.discoverMimeType

set the class instance mime type to common mimetypes based on a file extension.

Note: Does not include every possible mime type, and will be added to in future releases. It could also be smarter by doing a look up, but I'm trying to be light weight and not require a support file, or having to make a external connection to get data. if you need that kind of functionality, then it's up to the application developer to make that design call.

class CGI
void
discoverMimeType
(
string extension
)

Meta